Activity Diagram for Cricinfo
Create some activity diagrams for the Cricinfo.
We'll cover the following
Activity diagrams are a great way to visualize the flow of messages from one activity to the other in the system. There can be different activity diagrams that we can create for Cricinfo. In this lesson, we will create an activity diagram for making a record of a ball.
Make a record of a ball#
The states and actions that will be involved in this activity diagram are provided below.
States#
Initial state: The system adds a ball to the over.
Final state: The ball record is saved.
Actions#
The system adds a ball to the over. The system chooses the ball type that was bowled. The system determines if the batter got out. If they did not, it adds the score that was made. Finally, the commentary is added to the ball, and the ball record is saved.
In the next lesson, we will present the code for our designed classes in some of the most popular languages.
Sequence Diagram for Cricinfo
Code for Cricinfo